package com.example.yogurtsystem.enums;

/**
 * @author ZXB
 * @version 1.0.0
 * @ClassName BaseResultEnum
 * @Description TODO
 * @Date 2021/8/14 16:35
 */
public enum  BaseResultEnum {
    /**
     * 请求成功
     */
    SUCCESS(200, "请求成功"),
    /**
     * 服务器繁忙
     */
    BUSY(300, "服务器繁忙"),
    /**
     * 系统繁忙，请稍后重试！
     */
    DEFAULT(500, "系统繁忙，请稍后重试！"),
    /**
     * 参数异常
     */
    PARAMS_ERROR(601, "参数异常");

    private int code;
    private String msg;

    BaseResultEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;

    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }


    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
